with open('nm.csv', 'r', encoding='utf-8') as f:
    # 遍历每一行数据
    for line in f:
        # 处理每一行数据
        row = line.strip().split(',')
        sql = "update `dat_user_group` set PARENT_FYDM ='"+row[1]+"' where FYDM='"+ row[0] +"';"
        print(sql)
        